package com.numberone.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.numberone.system.mapper.BottomUrlSonMapper;
import com.numberone.system.domain.BottomUrlSon;
import com.numberone.system.service.IBottomUrlSonService;
import com.numberone.common.support.Convert;

/**
 * 底部url地址导航栏子级 服务层实现
 * 
 * @author numberone
 * @date 2020-09-25
 */
@Service
public class BottomUrlSonServiceImpl implements IBottomUrlSonService 
{
	@Autowired
	private BottomUrlSonMapper bottomUrlSonMapper;

	/**
     * 查询底部url地址导航栏子级信息
     * 
     * @param id 底部url地址导航栏子级ID
     * @return 底部url地址导航栏子级信息
     */
    @Override
	public BottomUrlSon selectBottomUrlSonById(Long id)
	{
	    return bottomUrlSonMapper.selectBottomUrlSonById(id);
	}
	
	/**
     * 查询底部url地址导航栏子级列表
     * 
     * @param bottomUrlSon 底部url地址导航栏子级信息
     * @return 底部url地址导航栏子级集合
     */
	@Override
	public List<BottomUrlSon> selectBottomUrlSonList(BottomUrlSon bottomUrlSon)
	{
	    return bottomUrlSonMapper.selectBottomUrlSonList(bottomUrlSon);
	}
	
    /**
     * 新增底部url地址导航栏子级
     * 
     * @param bottomUrlSon 底部url地址导航栏子级信息
     * @return 结果
     */
	@Override
	public int insertBottomUrlSon(BottomUrlSon bottomUrlSon)
	{
	    return bottomUrlSonMapper.insertBottomUrlSon(bottomUrlSon);
	}
	
	/**
     * 修改底部url地址导航栏子级
     * 
     * @param bottomUrlSon 底部url地址导航栏子级信息
     * @return 结果
     */
	@Override
	public int updateBottomUrlSon(BottomUrlSon bottomUrlSon)
	{
	    return bottomUrlSonMapper.updateBottomUrlSon(bottomUrlSon);
	}

	/**
     * 删除底部url地址导航栏子级对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteBottomUrlSonByIds(String ids)
	{
		return bottomUrlSonMapper.deleteBottomUrlSonByIds(Convert.toStrArray(ids));
	}

	@Override
	public List<BottomUrlSon> selectByPid(Long pid) {
		return bottomUrlSonMapper.selectByPid(pid);
	}

}
